
import request from '@/utils/request'
/**
 * 用户权益列表
 */
export function redEnvelopeSelect(params) {
  return request({
    url: '/server/redEnvelope/select',
    method: 'get',
    data: params
  })
}
/**
 * 用户权益保存
 */
export function redEnvelopeSave(params) {
  return request({
    url: '/server/redEnvelope/save',
    method: 'post',
    data: params
  })
}
/**
 * 用户权益更新
 */
export function redEnvelopeUpload(params) {
  return request({
    url: '/server/redEnvelope/update',
    method: 'post',
    data: params
  })
}
/**
 * 用户权益活动详情
 */
export function redEnvelopeInfo(params) {
  return request({
    url: '/server/redEnvelope/info',
    method: 'get',
    data: params
  })
}
/**
 * 用户权益活动详情
 */
export function redEnvelopeEnable(params) {
  return request({
    isFromData: 'true',
    url: '/server/redEnvelope/enable',
    method: 'post',
    data: params
  })
}
/**
 * 会员用户列表
 */
export function memberRedList(params) {
  return request({
    isFromData: 'true',
    url: '/server/redEnvelope/memberRedList',
    method: 'post',
    data: params
  })
}
/**
 * 会员加量购买记录
 */
export function buyRecordList(params) {
  return request({
    isFromData: 'true',
    url: '/server/redEnvelope/buyRecordList',
    method: 'post',
    data: params
  })
}
/**
 * 分享记录
 */
export function sharingRecordList(params) {
  return request({
    isFromData: 'true',
    url: '/server/sharingRecord/list',
    method: 'post',
    data: params
  })
}
/**
 * 积分兑换记录
 */
export function integralExchangeList(params) {
  return request({
    isFromData: 'true',
    url: '/server/integralExchange/list',
    method: 'post',
    data: params
  })
}
